//
//  NightView.m
//  LiangYa_BObject
//
//  Created by dllo on 15/11/6.
//  Copyright © 2015年 YuHao. All rights reserved.
//

#import "NightView.h"

@implementation NightView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

- (instancetype)init
{
    self = [super init];
    if (self) {
        if ([[NSUserDefaults standardUserDefaults]boolForKey:@"nightstyle"]) {
            self.backgroundColor = [UIColor colorWithRed:57/255.0 green:57/255.0 blue:57/255.0 alpha:1];
        }else{
            self.backgroundColor = [UIColor whiteColor];
        }
    }
    return self;
}

@end
